|
|
| Расположение в меню |
|---|
| Arch → Инструменты для труб → Труба |
| Верстаки |
| Arch |
| Быстрые клавиши |
| P I |
| Представлено в версии |
| 0.17 |
| См. также |
| Соединитель труб, Оборудование |
Этот инструмент позволяет создавать трубы с нуля или из выбранных объектов. Выбранные объекты должны быть основами деталей (Draft, Sketch, и дт..) и содержать одну и только одну незамкнутую линию.
An Arch Pipe object shares the common properties and behaviors of all Arch Components.
Component
Link): The base wire of this pipe, if any.For the other properties in the group see Arch Component.
Pipe
FreeCAD.ActiveDocument.Equipment.SnapPoints=[FreeCAD.Vector(0,0,100)]
Также возможно создать Трубы без базовой линии, в этом случае используйте свойство «Length» для задания длины.
Смотрите так же: Arch API и Основы составления скриптов в FreeCAD.
pipe = makePipe(baseobj=None, diameter=0, length=0, placement=None, name="Pipe")
pipe object from the given baseobj and diameter.
baseobj is a Draft Line or Draft Wire.baseobj is omitted, a straight pipe can be created with just the diameter and the length in the Z direction.placement is given, it is used.import Draft, Arch
p1 = FreeCAD.Vector(1000, 0, 0)
p2 = FreeCAD.Vector(2500, 200, 0)
p3 = FreeCAD.Vector(3100, 1000, 0)
p4 = FreeCAD.Vector(3500, 500, 0)
line = Draft.make_wire([p1, p2, p3, p4])
pipe = Arch.makePipe(line, 200)
FreeCAD.ActiveDocument.recompute()
pipe2 = Arch.makePipe(diameter=120, length=3000)
FreeCAD.ActiveDocument.recompute()